#include <iostream>
using namespace std;
bool effect(int n,int m){
	while(n>0 && m>0){
		while(m){
			int c;
			c=n-m;
			n=m;
			c=m;
		}
		return n;
	}
}
int main(){
	double min,max,tem;
	cin>>min>>max>>tem;
	double k;
	for(k=0;k<tem;k++){
		if(k/tem>min && k/tem<=max){
			if(effect(k,tem)){
				int t=effect(k,tem);
				cout<<" "<<t/tem;
			}
		}
	}
	
} 
